package cn.sytton.taffe.framework.properties.auth;

/**
 * yml配置类：auth.token(jwt)
 *
 * @author skyrock
 */
public class TokenProperties {
    /**
     * 请求头标识
     */
    private String header = "Authorization";
    /**
     * 密钥
     */
    private String secret = "wcr3my#mevg&5vn$ck$e2j82ug5a3g";
    /**
     * 过期时间,(单位：分, 默认30)
     */
    private int expireTime = 30;

    public String getHeader() {
        return header;
    }

    public void setHeader(String header) {
        this.header = header;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public int getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(int expireTime) {
        this.expireTime = expireTime;
    }

    public TokenProperties() {
        //这里会执行两次
        //System.out.println("init TokenProperties");
    }

}
